import http from '@/utils/http'

export const searchAllModelAPI=()=>{
    return http({
        url:'/model/home',
        method:"GET"
    })
}

export const searchAllFemaleAPI=()=>{
    return http({
        url:'/model/home/women',
        method:"GET"
    })
}

export const searchAllMaleAPI=()=>{
    return http({
        url:'/model/home/men',
        method:"GET"
    })
}

export const searchModelInfoAPI=(id:number)=>{
    return http({
        url:'/model/home/getPortfolio/'+id,
        method:"GET"
    })
}

export const getAboutAPI=()=>{
    return http({
        url:'/model/home/getAbout',
        method:"GET"
    })
}

export const getEmailBoxAPI=()=>{
    return http({
        url:'/model/home/getEmail',
        method:"GET"
    })
}

export const saveMessageAPI=(name:string,customerEmail:string,message:string)=>{
    return http({
        url:"/model/home/saveContact",
        method:"POST",
        data:{
            name,customerEmail,message
        }
    })
}